package com.boy.entity.dto;

import com.boy.entity.Account;
import lombok.Data;

import java.util.List;

/**
 * @author whd
 * @date 2024/06/15 10:18:10
 */

@Data
public class AccountDto extends Account {
    private Long replyNum;
    private Long talkNum;
    private Long likeNum;
    public AccountDto(){}
    public AccountDto(Account account){
           this.setId(account.getId());
           this.setMail(account.getMail());
           this.setNick(account.getNick());
           this.setPhone(account.getPhone());
           this.setRoles(account.getRoles());
           this.setType(account.getType());
           this.setCreated(account.getCreated());
           this.setAvatar(account.getAvatar());
           this.setIsDelete(account.getIsDelete());
           this.setBalance(account.getBalance());
           this.setUpdated(account.getUpdated());
    }

    @Override
    public String toString() {

        return super.toString()+"AccountDto{" +
                "replyNum=" + replyNum +
                ", talkNum=" + talkNum +
                ", likeNum=" + likeNum +
                '}';
    }
}
